
public class Pair<A,B> {
	A v1;
	B v2;
	
	public void set(A v1, B v2) {
		this.v1 = v1;
		this.v2 = v2;
	}
	
	
	public A getV1() {return v1;}
	public B getV2() {return v2;}
	public String toString() {
		return "[" + getV1() + "|" + getV2() + "]";
	}
	
	public static void main(String[] args) {
		Pair<Integer,String> pair1 = new Pair<Integer,String>();
		pair1.set(1, "abc");
		System.out.println(pair1);
	}
}
